<?php

require_once(t3lib_extMgm::extPath('zlib') . 'class.tx_zlib_model.php');

class tx_zboard_profile extends tx_zlib_model
{

    public function getImage()
    {
        if(!empty($this->image)) {
            $filename = 'uploads/pics/' . $this->image;
            if(is_file($filename)) {
                return $filename;
            }
        }
        return '';
    }

    public function getWww()
    {
        if(!empty($this->www)) {
            return str_replace('http://', '', $this->www);
        }
        return '';
    }

}

if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_profile.php']) {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_profile.php']);
}
